package org.example.DesignPatterns.Observer;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-25 13:32
 **/
public class Client {

    public static void main(String[] args) {
        Buyer zhangSan=new PhoneFans("张三");
        Buyer liSi=new HandChopper("李四");
        Shop shop=new Shop();

        shop.register(zhangSan);
        shop.register(liSi);

        shop.setProduct("水");
        shop.setProduct("手机");
    }

}